using System;
using System.Collections.Generic;
using Cos.Core.Model.Blog;

namespace Cos.Core.NHibernate
{
    public class BlogTagDataModel : DataModelBase<Tag>
    {
        #region Constructors and Destructors

        public BlogTagDataModel() {}

        #endregion

        #region Properties

        //TODO: To be replaced later: public virtual CultureDataModel Culture { get; set; }
        public virtual string CultureCode { get; set; }

        //public virtual IEnumerable<ArticleCultureDataModel> ArticleCultures { get; set; }

        public virtual int Id { get; set; }

        public virtual string Name { get; set; }

        #endregion

        #region Object Overrides

        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return false;
            }

            var model = obj as BlogTagDataModel;

            return model != null && this.Id == model.Id;
        }

        public override int GetHashCode()
        {
            return this.Id.GetHashCode();
        }

        public override void Fill(Tag model)
        {
            throw new NotImplementedException();
        }

        public override Tag ToModel()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}